<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<input type="hidden" name="id" value="${product.id}">
<div class="mb-3">
    <label for="name" class="form-label">商品名称</label>
    <input type="text" class="form-control" id="name" name="name" value="${product.name}" required>
</div>

<div class="mb-3">
    <label for="category" class="form-label">类别</label>
    <input type="text" class="form-control" id="category" name="category" value="${product.category}" required>
</div>

<div class="mb-3">
    <label for="brand" class="form-label">品牌</label>
    <input type="text" class="form-control" id="brand" name="brand" value="${product.brand}" required>
</div>

<div class="mb-3">
    <label for="price" class="form-label">价格</label>
    <input type="number" step="0.01" class="form-control" id="price" name="price" value="${product.price}" required>
</div>

<div class="mb-3">
    <label for="description" class="form-label">描述</label>
    <textarea class="form-control" id="description" name="description" rows="3">${product.description}</textarea>
</div>

<div class="mb-3">
    <label for="stock" class="form-label">库存</label>
    <input type="number" class="form-control" id="stock" name="stock" value="${product.stock}" required>
</div>
